import 'package:winkai/generated/json/base/json_field.dart';
import 'package:winkai/generated/json/g_iap_req.g.dart';
import 'dart:convert';
export 'package:winkai/generated/json/g_iap_req.g.dart';

@JsonSerializable()
class GIAPReq {
	@JSONField(name: "device_id")
	String? deviceId;
	@JSONField(name: "package_name")
	String? packageName;
	@JSONField(name: "product_id")
	String? productId;
	int? quantity;
	@JSONField(name: "purchase_time")
	int? purchaseTime;
	@JSONField(name: "purchase_state")
	int? purchaseState;
	@JSONField(name: "purchase_token")
	String? purchaseToken;

	GIAPReq();

	factory GIAPReq.fromJson(Map<String, dynamic> json) => $GIAPReqFromJson(json);

	Map<String, dynamic> toJson() => $GIAPReqToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}